package cn.itcast.nems.manager.activity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;
import java.util.Optional;

@ConfigurationProperties(prefix = "bpm")
@Data
public class BpmProperties {

    private String gatewayHost;
    private Map<String, String> processDefinitionKey;
    
    public Optional<String> getProcess(String key) {
        return Optional.ofNullable(processDefinitionKey.get(key));
    }

}